const system = uni.getSystemInfoSync();
export const getstatusBarHeight = ()=>system.statusBarHeight || 15


export const getTitleBarHeight = () =>{
	if(uni.getMenuButtonBoundingClientRect){
		let {top, height} = uni.getMenuButtonBoundingClientRect();
		// console.log(top, height);
		return (top - getstatusBarHeight())*2 + height
	}
	return 60
	
}

export const getNavBarHeight = () =>getTitleBarHeight() + getstatusBarHeight()

export const getLeftIconLeft = () =>{
	
	// #ifdef MP-TOUTIAO
		let {leftIcon:{left, wdith}} = tt.getCustomButtonBoundingClientRect()
		return left + paresInt(wdith)
	// #endif
	
	// #ifndef MP-TOUTIAO
		return 0
	// #endif
	
}